import request from '@/router/axios'

/*
* 查询成员列表
* */
//文件上传
export function uploadExcel(obj) {
    return request({
        url: '/cp/workemployee/input-excel',
        method: 'post',
        data: obj,
        headers: {
            "content-type": "multipart/form-data"
        }
    })
}

//导出excel
export function exportExcel () {
    return request({
        url: '/cp/workemployee/excel-error-exit',
        method: 'post',
        responseType: "blob"
    })
}

//导出部门ID  excel
export function exportIdExcel () {
    return request({
        url: '/cp/workdepartment/getAllDept',
        method: 'get',
        responseType: "blob"
    })
}

//下载模板  excel
export function downloadExcel () {
    return request({
        url: '/cp/workemployee/exit-excel',
        method: 'post',
        responseType: "blob"
    })
}

/*
* 查询成员列表
* */
export function getMemberList(query) {
    return request({
        url: '/cp/workemployee/page',
        method: 'get',
        params: query
    })
}

/*
*成员列表搜索条件数据
* */
export function getSearchParams() {
    return request({
        url: '/cp/workemployee/searchcondition',
        method: 'get',
    })
}

/*
* 同步企业成员
* */
export function putSyncEmployee() {
    return request({
        url: '/cp/workemployee/synemployee',
        method: 'put',
    })
}
